package com.fishing.entity;

import java.util.Date;

/**
 * 数据修改记录
 */
public class EditLog {
    /**
     * 日志条数
     */
    private Integer id;

    /**
     * 管理员账号名
     */
    private String adminId;

    /**
     * 游戏名
     */
    private String gameName;

    /**
     * 房间号
     */
    private Integer roomId;

    /**
     * 事件
     */
    private String event;

    /**
     * 操作结果
     */
    private String result;

    /**
     * 操作时间
     */
    private Date time;

    /**
     * IP地址
     */
    private String ip;

    public String getTimeFormat() {
        return timeFormat;
    }

    public void setTimeFormat(String timeFormat) {
        this.timeFormat = timeFormat;
    }

    private String timeFormat;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", adminId=").append(adminId);
        sb.append(", gameName=").append(gameName);
        sb.append(", roomId=").append(roomId);
        sb.append(", event=").append(event);
        sb.append(", result=").append(result);
        sb.append(", time=").append(time);
        sb.append(", ip=").append(ip);
        sb.append("]");
        return sb.toString();
    }
}